//
//  RMNavigationBar.m
//  TabBar
//
//  Created by 温人米 on 2019/1/10.
//  Copyright © 2019年 温人米. All rights reserved.
//

#import "RMNavigationBar.h"

@implementation RMNavigationBar

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
     
        [self addSubview:self.navigationView];
        
    }
    return self;
}

-(void)layoutSubviews{
    //NSLog(@"---%f",self.bounds.size.height);
    self.navigationView.frame = CGRectMake(0, -20, [UIScreen mainScreen].bounds.size.width, 64);
    [self bringSubviewToFront:self.navigationView];
}

-(RMNavigationView *)navigationView{
    if (!_navigationView) {
        _navigationView = [[RMNavigationView alloc] init];
    }
    return _navigationView;
}

@end
